﻿<?xml version="1.0" encoding="utf-8" ?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
  <CustomAction Id="LiebrandUrlShortener.GenerateItem"
                Location="EditControlBlock"
                Title="$Resources:liebrandurlshortener,ECBText"
                Description="$Resources:liebrandurlshortener,ECBDescription"
                RegistrationType="ContentType"
                RegistrationId="0x01">
    <UrlAction Url="javascript:window.location= '{SiteUrl}/_layouts/Liebrand.UrlShortener/GenerateItem.aspx?List={ListId}&amp;ItemId={ItemId}&amp;Source=' + window.location" />
  </CustomAction>

  <CustomAction Id="LiebrandUrlShortener.GenerateItem"
                Location="Microsoft.SharePoint.StandardMenu"
                GroupId="PersonalActions"
                Title="$Resources:liebrandurlshortener,ECBText"
                Description="$Resources:liebrandurlshortener,ECBDescription">
    <UrlAction Url="javascript:window.location= '{SiteUrl}/_layouts/Liebrand.UrlShortener/GenerateItem.aspx?Source=' + window.location" />
  </CustomAction>
</Elements>